/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wisnu.scs.event.thread;

import com.wisnu.scs.view.MainFrame;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Wisnu Wardoyo
 */
public class Repainter extends Thread{

    MainFrame frame;

    public void setFrame(MainFrame frame) {
        this.frame = frame;
    }

    @Override
    public void run() {
        while(true){
            frame.repaint();
            try {
                Thread.sleep(100);
            } catch (InterruptedException ex) {
                
            }
        }
    }
    
    

}
